-- GENERATED SPELL FOR [Rutherford Twing] --


function spell0_15126(pUnit, Event) --@Backhand,n/a--
pUnit:FullCastSpellOnTarget(6253,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15126', 2295, 1)
end

function spell1_15126(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(22911,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15126', 2302, 1)
end

function spell2_15126(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15126', 660, 1)
end

function spell3_15126(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(15708,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15126', 5286, 1)
end

function spell4_15126(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(15576,pUnit)
pUnit:RegisterEvent('Sorts_15126', 514, 1)
end

function spell5_15126(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(17207,pUnit)
pUnit:RegisterEvent('Sorts_15126', 2000, 1)
end

function Sorts_15126(pUnit, Event)
local choix_sorts_15126 = math.random(0, 5)
if choix_sorts_15126 == 0 then
pUnit:RegisterEvent('spell0_15126', 1, 1)
end
if choix_sorts_15126 == 1 then
pUnit:RegisterEvent('spell1_15126', 1, 1)
end
if choix_sorts_15126 == 2 then
pUnit:RegisterEvent('spell2_15126', 1, 1)
end
if choix_sorts_15126 == 3 then
pUnit:RegisterEvent('spell3_15126', 1, 1)
end
if choix_sorts_15126 == 4 then
pUnit:RegisterEvent('spell4_15126', 1, 1)
end
if choix_sorts_15126 == 5 then
pUnit:RegisterEvent('spell5_15126', 1, 1)
end
end

function mob15126_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15126', math.random(1500, 3000), 1)
end

function mob15126_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15126_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15126_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15126, 1, 'mob15126_Action')
RegisterUnitEvent(15126, 2, 'mob15126_Leave')
RegisterUnitEvent(15126, 3, 'mob15126_Kill')
RegisterUnitEvent(15126, 4, 'mob15126_Die')
